import { ApiCall } from "tsrpc";
import { ReqGetServerList, ResGetServerList } from "../../shared/gateClient/protocols/PtlGetServerList";
import mgr from "../../gameServerMgr"


export async function ApiGetServerList(call: ApiCall<ReqGetServerList, ResGetServerList>) {
    call.succ({
        GameServerList: mgr.getAllGameServers()
    })
}